<?
		$gp_code_val = set_value('gp_code') == FALSE ? NULL : set_value('gp_code');
		$gp_desc_val = set_value('gp_desc') == FALSE ? NULL : set_value('gp_desc');
		$gp_stat_val = set_select('gp_stat') == FALSE ? NULL : set_select('gp_stat');
	
		$gpc_att = array('name'=>'gp_code','value'=>$gp_code_val);
		$gpd_att = array('name'=>'gp_desc','value'=>$gp_desc_val);
		$frm_att = array('class'=>'admin-form');
		$gps_options = array(''=>'select status','active'=>'Active','inactive'=>'Inactive');
 // $this->load->view('layouts/_flash');
 ?>
	<div class="row">
	<h3 class="subheader">Add Grading Period</h3>
	<?if(isset($system_message))echo $system_message;
	echo validation_errors('<div class="error">', '</div>');
	?>
			<?echo form_open('admin/add_grading_period',$frm_att);?>
		<div class="row">
		<div class="large-4 columns">
			<?
				echo form_label('Code');
				echo form_input($gpc_att);
			?>
		</div>
		</div>
		<div class="row">
		<div class="large-4 columns">
			<?
				echo form_label('Description');
				echo form_input($gpd_att);
			?>
		</div>
		</div>
		<div class="row">
		<div class="large-4 columns">
			<?
				echo form_label('Status','Level Desc');
				echo form_dropdown('gp_stat',$gps_options,$gp_stat_val);
			?>
		</div>
		</div>
		<div class="row">
		<div class="large-4 columns">
			<?
				echo form_submit('','Add','class="btn btn-small btn-primary"');
				echo form_close();
			?>
		</div>
		</div>
	</div>